/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.velocityme.session;

import com.velocityme.entity.Group;
import com.velocityme.entity.User;
import java.util.Collection;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author rcrida
 */
@Local
public interface UserLocal {

    User createUser(KeyLocal key, User user, String password);

    void editUser(KeyLocal key, User user);

    User findUser(KeyLocal key, Long userId);

    void changePassword(KeyLocal key, Long userId, String oldPassword, String newPassword);

    void setUserEnabled(KeyLocal key, Long userId, boolean enabled);

    void addBookmarkNode(KeyLocal key, Long nodeId);

    void removeBookmarkNode(KeyLocal key, Long nodeId);

    void showBookmarks(KeyLocal key, boolean show);

    Collection<User> findAllUsers(KeyLocal key);

    List<Group> getGroups(KeyLocal key, User user);

}
